﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using WebApplication1.Domain.Entity;

namespace WebApplication1.Domain
{
    public class Admin3000DbContext:DbContext
    {
        //protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        //{
        //    optionsBuilder.UseSqlServer("server=.;database=Admin;uid=sa;pwd=123456");
        //}
      
        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            optionsBuilder.UseSqlServer("server=.;database=Admin;uid=sa;pwd=123456");
        }

        public DbSet<Proudcts> Proudcts { get; set; }

        public DbSet<Brands> Brands { get; set; }
    }
}
